#pragma once
#include"Vector3.h"
#include"Ray.h"

class BoundingBox
{
public:
	BoundingBox();
	BoundingBox(Vector3 min, Vector3 max);
	~BoundingBox();
	bool Hit(lzw::Ray ray);
	bool Hit(lzw::Ray ray, float& t);
	static BoundingBox Combine(BoundingBox b1, BoundingBox b2);
	BoundingBox Combine(BoundingBox box);
	Vector3 GetCenter();
public:
	Vector3 min;
	Vector3 max;
};

